

#ifndef __CE_XMLHELPER_H__
#define __CE_XMLHELPER_H__

#include <libxml/tree.h>
#include <cexml/ceexport.h>

class CE_XML_API ceXmlHelper
{
private:
  ceXmlHelper ();

public:
  static bool HasAttribute (xmlNode* node, const char* attributeName);
  static const char*GetAttribute (xmlNode* node, const char* attributeName, const char* defaultValue = "");

  static unsigned GetNumberOfChildren (xmlNode* node, const char* tagName = "");
  static xmlNode* GetChild (xmlNode* parent, const char* tagName);
  static xmlNode* GetChild (xmlNode* parent, unsigned idx, const char* tagName = "");

};

#endif /* ! __CE_XMLHELPER_HH__ */ 
